package module.app
{
	import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
	import robotlegs.bender.framework.api.IConfig;
	import robotlegs.bender.framework.api.IInjector;

	public class AppConfigure implements IConfig
	{
		[Inject]
		public var injector:IInjector;
		[Inject]
		public var mediatorMap:IMediatorMap;
		public function AppConfigure()
		{
		}
		
		public function configure():void
		{
			injector.map(SplashWindow).asSingleton();
			
			this.ShowSplashWindow();
			
			mediatorMap.map(AppConfigure).toMediator(AppMediator);
			mediatorMap.mediate(this);
		}
		private function ShowSplashWindow():void{
			//显示开始面板
			var splashWindow:SplashWindow =injector.getInstance(SplashWindow);
			splashWindow.activate();
		}
	}
}